﻿using System;

namespace Utils.Common
{
    /// <summary>
    /// 订单编号生成器
    /// </summary>
    public class BaseIdGenerator
    {   
        //16位
        private readonly IdGenerator _numberGeneratorId = new IdGenerator(3);
        /// <summary>
        /// ctor
        /// </summary>
        public BaseIdGenerator()
        {
        }

   
        public string GetId()
        {
            return _numberGeneratorId.GetId(DateTime.Now);
        }
 
        /// <summary>
        /// Instance
        /// </summary>
        public static readonly BaseIdGenerator Instance = new BaseIdGenerator();
    }
}
